﻿

//导入客户
var fnImportUser = function ()
{
    var recordID = myDataTable.getSelectedRows()[0];
    record = myDataTable.getRecord(recordID);
    if (record == null)
    {
        alert("请选择一条记录");
        return;
    }
    window.parent.$("#tabs").tabs('close', '组员管理');
    parent.addTabs('组员管理', '../message/orgselect.aspx?r=' + Math.random() + '&otname=' + record.getData("otname") + '&id=' + record.getData(const_entityID));
    parent.NeedRefreshPage = this;
}

//进入EXCEL导入界面
var fnExcelImport = function ()
{
    var recordID = myDataTable.getSelectedRows()[0];
    record = myDataTable.getRecord(recordID);
    if (record == null)
    {
        alert("请选择一条记录");
        return;
    }
    parent.addTabs('导入人员信息', '../message/orglist.aspx?r=' + Math.random() + '&otname=' + record.getData("otname") + '&id=' + record.getData(const_entityID));
    parent.NeedRefreshPage = this;
}


//双击事件
function CustomDbClick()
{
    fnImportUser();
}